﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DnaCoreLib
{
    public class MenuCategory
    {
        public MenuCategory(string app, string category)
        {
            App = app;
            Category = category;
        }
        public MenuCategory(string app, string category, string displayName)
            : this(app, category)
        {
            DisplayName = displayName;
        }

        public string App { get; set; }
        public string Category { get; set; }
        public string DisplayName { get; set; }

        public override string ToString()
        {
            if (String.IsNullOrEmpty(DisplayName))
                return Category;
            else
                return DisplayName;
        }
    }
}
